<?php
$ds = DIRECTORY_SEPARATOR;
$root_path = dirname(dirname(dirname(__FILE__)));
$paths = array();

// Doctrine
//$paths[] = 'path/to/Doctrine';

// Zend Framework
//$paths[] = 'path/to/Zend/Framework';

// Smart Library
$paths[] = "$root_path{$ds}library{$ds}";

set_include_path( implode(PATH_SEPARATOR, $paths) . PATH_SEPARATOR . get_include_path() );